package com.app.coderead;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class CodeReadBean {
    private final int tid;
    public static final String NAME = "name";
    public static final String HEIGHT = "height";
    public static final String WIDTH = "width";
    public static final String LINES = "lines";
    public static final String CURRENTLINE = "currentLine";
    
    private HashMap<String, String> map = new HashMap<String, String>();
    {
        tid = this.hashCode();
    }
    
    /**
     * 
     */
    public String getTid() {
        return "tid" + tid;
    }
    
    /**
     * 取得的map實際儲存這個bean的資料
     * @return map
     */
    public Map<String, String> getMap() {
        return map;
    }
    
    /**
     * return the name of file
     * @return name 
     */
    public String getName() {
        return map.get(NAME);
    }
    public void setName(String value) {
        map.put(NAME, value);
    }
    /**
     * return the size of division height
     * @return the size of division height
     */
    public String getHeight() {
        return map.get(HEIGHT);
    }
    public void setHeight(String value) {
        map.put(HEIGHT, value);
    }
    /**
     * return the size of division width
     * @return the size of division width
     */
    public String getWidth() {
        return map.get(WIDTH);
    }
    public void setWidth(String value) {
        map.put(WIDTH, value);
    }
    /**
     * return the number of document lines
     * @return return the number of document lines
     */
    public String getLines() {
        return map.get(LINES);
    }
    public void setLines(String value) {
        map.put(LINES, value);
    }
    public void setLines(int value) {
        setLines(String.valueOf(value));
    }
    /**
     * return the current line number
     * @return the current line number
     */
    public String getCurrentLine() {
        return map.get(CURRENTLINE);
    }
    public void setCurrentLine(String value) {
        map.put(CURRENTLINE, value);
    }

}
